<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><{if $smarty.get.editid>0}>编辑<{else}>添加<{/if}></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script src="../script/my_lightbox.js" language="javascript"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/Validator.js"></script>
</head>
<body>
	<div class="container">
        <div class="flow">
            <div class="itemtitle">
                <h3><{if $smarty.get.editid>0}>编辑<{else}>添加<{/if}></h3>
                <ul>
                    <li><a href="?m=sns&s=sns_paster.php"><span>贴纸列表</span></a></li>
                </ul>
            </div>
        </div>
        
        <form name="form" id="form" method="post" onsubmit="return Validator.Validate(this,3);">
            <input name="id" type="hidden" value="<{$de.id}>">
            <table class="table">
                <thead>
                    <tr>
                        <th class="partition" colspan="99">贴纸</th>
                    </tr>
                </thead>
                <tbody>
                
                <tr>
                    <td>贴纸名称</td>
                    <td>
                        <input type="text" name="name" dataType="Require" msg="名称不能为空" value="<{$de.name}>" />
                    </td>
                </tr>
                
		        <tr>
		          <td width="100">贴纸图片</td>
		          <td><input class="text" type="text" name="pic" id="paster" dataType="Require" msg="请上传图片" value="<{$de.pic}>" />[<a href="javascript:uploadfile('上传贴纸','paster',320,320,'sns/paster')">上传</a>] 
		            [<a href="javascript:preview('paster');">预览</a>]
		            [<a onclick="javascript:$('#paster').val('');" href="#">删除</a>] </td>
		        </tr>
                
                <tr>
                    <td>展示状态</td>
                    <td>
                    <input type="radio" name="status" value="1" id="open" <{if $de.status==1}>checked="checked"<{/if}>/><label for="open">显示</label>
                    <input type="radio" name="status" value="-1" id="close" <{if $de.status==-1}>checked="checked"<{/if}>/><label for="close">删除</label>
                    </td>
                </tr>
                
                <tr>
                    <td>&nbsp;</td>
                    <td>
                    <input class="submit" type="submit" value="提交">
                    <input name="act" type="hidden" id="action" value="save">
                    </td>
                </tr>
                </tbody>
            </table>
            </form>
	</div>
</body>
</html>